<?php
	/**
	 * The abstract TableBankRequestInGen class defined here is
	 * code-generated and contains all the basic CRUD-type functionality as well as
	 * basic methods to handle relationships and index-based loading.
	 *
	 * To use, you should use the TableBankRequestIn subclass which
	 * extends this TableBankRequestInGen class.
	 *
	 * Because subsequent re-code generations will overwrite any changes to this
	 * file, you should leave this file unaltered to prevent yourself from losing
	 * any information or code changes.  All customizations should be done by
	 * overriding existing or implementing new methods, properties and variables
	 * in the TableBankRequestIn class.
	 * 
	 * @package My Application
	 * @subpackage GeneratedDataObjects
	 * @property-read integer $Id the value for intId (Read-Only PK)
	 * @property integer $UserId the value for intUserId (Not Null)
	 * @property integer $Currency the value for intCurrency 
	 * @property integer $Amount the value for intAmount (Not Null)
	 * @property integer $FeeTaken the value for intFeeTaken (Not Null)
	 * @property string $UserNameFrom the value for strUserNameFrom (Not Null)
	 * @property string $ProcessAdminName the value for strProcessAdminName 
	 * @property QDateTime $InDate the value for dttInDate 
	 * @property QDateTime $RequestDate the value for dttRequestDate 
	 * @property QDateTime $ProcessDate the value for dttProcessDate 
	 * @property string $Processed the value for strProcessed (Not Null)
	 * @property string $Active the value for strActive 
	 * @property integer $Status the value for intStatus (Not Null)
	 * @property integer $TransactionId the value for intTransactionId 
	 * @property integer $ProcessTransactionId the value for intProcessTransactionId 
	 * @property string $Ip the value for strIp 
	 * @property integer $ActualAmount the value for intActualAmount (Not Null)
	 * @property integer $ActualFeeTaken the value for intActualFeeTaken (Not Null)
	 * @property string $BankName the value for strBankName 
	 * @property string $BankNameKana the value for strBankNameKana 
	 * @property string $BranchName the value for strBranchName 
	 * @property string $BranchNameKana the value for strBranchNameKana 
	 * @property string $BankCode the value for strBankCode 
	 * @property string $BranchCode the value for strBranchCode 
	 * @property string $AccountName the value for strAccountName 
	 * @property string $AccountType the value for strAccountType 
	 * @property string $AccountId the value for strAccountId 
	 * @property string $Description the value for strDescription 
	 * @property TableUserProject $User the value for the TableUserProject object referenced by intUserId (Not Null)
	 * @property TableTransaction $Transaction the value for the TableTransaction object referenced by intTransactionId 
	 * @property TableTransaction $ProcessTransaction the value for the TableTransaction object referenced by intProcessTransactionId 
	 * @property-read boolean $__Restored whether or not this object was restored from the database (as opposed to created new)
	 */
	class TableBankRequestInGen extends QBaseClass {

		///////////////////////////////////////////////////////////////////////
		// PROTECTED MEMBER VARIABLES and TEXT FIELD MAXLENGTHS (if applicable)
		///////////////////////////////////////////////////////////////////////
		
		/**
		 * Protected member variable that maps to the database PK Identity column table_bank_request_in.id
		 * @var integer intId
		 */
		protected $intId;
		const IdDefault = 0;


		/**
		 * Protected member variable that maps to the database column table_bank_request_in.user_id
		 * @var integer intUserId
		 */
		protected $intUserId;
		const UserIdDefault = 0;


		/**
		 * Protected member variable that maps to the database column table_bank_request_in.currency
		 * @var integer intCurrency
		 */
		protected $intCurrency;
		const CurrencyDefault = 0;


		/**
		 * Protected member variable that maps to the database column table_bank_request_in.amount
		 * @var integer intAmount
		 */
		protected $intAmount;
		const AmountDefault = 0;


		/**
		 * Protected member variable that maps to the database column table_bank_request_in.fee_taken
		 * @var integer intFeeTaken
		 */
		protected $intFeeTaken;
		const FeeTakenDefault = 0;


		/**
		 * Protected member variable that maps to the database column table_bank_request_in.user_name_from
		 * @var string strUserNameFrom
		 */
		protected $strUserNameFrom;
		const UserNameFromMaxLength = 100;
		const UserNameFromDefault = 'n';


		/**
		 * Protected member variable that maps to the database column table_bank_request_in.process_admin_name
		 * @var string strProcessAdminName
		 */
		protected $strProcessAdminName;
		const ProcessAdminNameMaxLength = 100;
		const ProcessAdminNameDefault = null;


		/**
		 * Protected member variable that maps to the database column table_bank_request_in.in_date
		 * @var QDateTime dttInDate
		 */
		protected $dttInDate;
		const InDateDefault = null;


		/**
		 * Protected member variable that maps to the database column table_bank_request_in.request_date
		 * @var QDateTime dttRequestDate
		 */
		protected $dttRequestDate;
		const RequestDateDefault = null;


		/**
		 * Protected member variable that maps to the database column table_bank_request_in.process_date
		 * @var QDateTime dttProcessDate
		 */
		protected $dttProcessDate;
		const ProcessDateDefault = null;


		/**
		 * Protected member variable that maps to the database column table_bank_request_in.processed
		 * @var string strProcessed
		 */
		protected $strProcessed;
		const ProcessedMaxLength = 1;
		const ProcessedDefault = null;


		/**
		 * Protected member variable that maps to the database column table_bank_request_in.active
		 * @var string strActive
		 */
		protected $strActive;
		const ActiveMaxLength = 1;
		const ActiveDefault = null;


		/**
		 * Protected member variable that maps to the database column table_bank_request_in.status
		 * @var integer intStatus
		 */
		protected $intStatus;
		const StatusDefault = 0;


		/**
		 * Protected member variable that maps to the database column table_bank_request_in.transaction_id
		 * @var integer intTransactionId
		 */
		protected $intTransactionId;
		const TransactionIdDefault = 0;


		/**
		 * Protected member variable that maps to the database column table_bank_request_in.process_transaction_id
		 * @var integer intProcessTransactionId
		 */
		protected $intProcessTransactionId;
		const ProcessTransactionIdDefault = 0;


		/**
		 * Protected member variable that maps to the database column table_bank_request_in.ip
		 * @var string strIp
		 */
		protected $strIp;
		const IpMaxLength = 30;
		const IpDefault = null;


		/**
		 * Protected member variable that maps to the database column table_bank_request_in.actual_amount
		 * @var integer intActualAmount
		 */
		protected $intActualAmount;
		const ActualAmountDefault = 0;


		/**
		 * Protected member variable that maps to the database column table_bank_request_in.actual_fee_taken
		 * @var integer intActualFeeTaken
		 */
		protected $intActualFeeTaken;
		const ActualFeeTakenDefault = 0;


		/**
		 * Protected member variable that maps to the database column table_bank_request_in.bank_name
		 * @var string strBankName
		 */
		protected $strBankName;
		const BankNameMaxLength = 100;
		const BankNameDefault = null;


		/**
		 * Protected member variable that maps to the database column table_bank_request_in.bank_name_kana
		 * @var string strBankNameKana
		 */
		protected $strBankNameKana;
		const BankNameKanaMaxLength = 100;
		const BankNameKanaDefault = null;


		/**
		 * Protected member variable that maps to the database column table_bank_request_in.branch_name
		 * @var string strBranchName
		 */
		protected $strBranchName;
		const BranchNameMaxLength = 100;
		const BranchNameDefault = null;


		/**
		 * Protected member variable that maps to the database column table_bank_request_in.branch_name_kana
		 * @var string strBranchNameKana
		 */
		protected $strBranchNameKana;
		const BranchNameKanaMaxLength = 100;
		const BranchNameKanaDefault = null;


		/**
		 * Protected member variable that maps to the database column table_bank_request_in.bank_code
		 * @var string strBankCode
		 */
		protected $strBankCode;
		const BankCodeMaxLength = 20;
		const BankCodeDefault = null;


		/**
		 * Protected member variable that maps to the database column table_bank_request_in.branch_code
		 * @var string strBranchCode
		 */
		protected $strBranchCode;
		const BranchCodeMaxLength = 20;
		const BranchCodeDefault = null;


		/**
		 * Protected member variable that maps to the database column table_bank_request_in.account_name
		 * @var string strAccountName
		 */
		protected $strAccountName;
		const AccountNameMaxLength = 100;
		const AccountNameDefault = null;


		/**
		 * Protected member variable that maps to the database column table_bank_request_in.account_type
		 * @var string strAccountType
		 */
		protected $strAccountType;
		const AccountTypeMaxLength = 20;
		const AccountTypeDefault = null;


		/**
		 * Protected member variable that maps to the database column table_bank_request_in.account_id
		 * @var string strAccountId
		 */
		protected $strAccountId;
		const AccountIdMaxLength = 100;
		const AccountIdDefault = null;


		/**
		 * Protected member variable that maps to the database column table_bank_request_in.description
		 * @var string strDescription
		 */
		protected $strDescription;
		const DescriptionMaxLength = 255;
		const DescriptionDefault = null;


		/**
		 * Protected array of virtual attributes for this object (e.g. extra/other calculated and/or non-object bound
		 * columns from the run-time database query result for this object).  Used by InstantiateDbRow and
		 * GetVirtualAttribute.
		 * @var string[] $__strVirtualAttributeArray
		 */
		protected $__strVirtualAttributeArray = array();

		/**
		 * Protected internal member variable that specifies whether or not this object is Restored from the database.
		 * Used by Save() to determine if Save() should perform a db UPDATE or INSERT.
		 * @var bool __blnRestored;
		 */
		protected $__blnRestored;




		///////////////////////////////
		// PROTECTED MEMBER OBJECTS
		///////////////////////////////

		/**
		 * Protected member variable that contains the object pointed by the reference
		 * in the database column table_bank_request_in.user_id.
		 *
		 * NOTE: Always use the User property getter to correctly retrieve this TableUserProject object.
		 * (Because this class implements late binding, this variable reference MAY be null.)
		 * @var TableUserProject objUser
		 */
		protected $objUser;

		/**
		 * Protected member variable that contains the object pointed by the reference
		 * in the database column table_bank_request_in.transaction_id.
		 *
		 * NOTE: Always use the Transaction property getter to correctly retrieve this TableTransaction object.
		 * (Because this class implements late binding, this variable reference MAY be null.)
		 * @var TableTransaction objTransaction
		 */
		protected $objTransaction;

		/**
		 * Protected member variable that contains the object pointed by the reference
		 * in the database column table_bank_request_in.process_transaction_id.
		 *
		 * NOTE: Always use the ProcessTransaction property getter to correctly retrieve this TableTransaction object.
		 * (Because this class implements late binding, this variable reference MAY be null.)
		 * @var TableTransaction objProcessTransaction
		 */
		protected $objProcessTransaction;





		///////////////////////////////
		// CLASS-WIDE LOAD AND COUNT METHODS
		///////////////////////////////

		/**
		 * Static method to retrieve the Database object that owns this class.
		 * @return QDatabaseBase reference to the Database object that can query this class
		 */
		public static function GetDatabase() {
			return QApplication::$Database[1];
		}

		/**
		 * Load a TableBankRequestIn from PK Info
		 * @param integer $intId
		 * @param QQClause[] $objOptionalClauses additional optional QQClause objects for this query
		 * @return TableBankRequestIn
		 */
		public static function Load($intId, $objOptionalClauses = null) {
			// Use QuerySingle to Perform the Query
			return TableBankRequestIn::QuerySingle(
				QQ::AndCondition(
					QQ::Equal(QQN::TableBankRequestIn()->Id, $intId)
				),
				$objOptionalClauses
			);
		}

		/**
		 * Load all TableBankRequestIns
		 * @param QQClause[] $objOptionalClauses additional optional QQClause objects for this query
		 * @return TableBankRequestIn[]
		 */
		public static function LoadAll($objOptionalClauses = null) {
			if (func_num_args() > 1) {
				throw new QCallerException("LoadAll must be called with an array of optional clauses as a single argument");
			}
			// Call TableBankRequestIn::QueryArray to perform the LoadAll query
			try {
				return TableBankRequestIn::QueryArray(QQ::All(), $objOptionalClauses);
			} catch (QCallerException $objExc) {
				$objExc->IncrementOffset();
				throw $objExc;
			}
		}

		/**
		 * Count all TableBankRequestIns
		 * @return int
		 */
		public static function CountAll() {
			// Call TableBankRequestIn::QueryCount to perform the CountAll query
			return TableBankRequestIn::QueryCount(QQ::All());
		}




		///////////////////////////////
		// QCUBED QUERY-RELATED METHODS
		///////////////////////////////

		/**
		 * Internally called method to assist with calling Qcubed Query for this class
		 * on load methods.
		 * @param QQueryBuilder &$objQueryBuilder the QueryBuilder object that will be created
		 * @param QQCondition $objConditions any conditions on the query, itself
		 * @param QQClause[] $objOptionalClausees additional optional QQClause object or array of QQClause objects for this query
		 * @param mixed[] $mixParameterArray a array of name-value pairs to perform PrepareStatement with (sending in null will skip the PrepareStatement step)
		 * @param boolean $blnCountOnly only select a rowcount
		 * @return string the query statement
		 */
		protected static function BuildQueryStatement(&$objQueryBuilder, QQCondition $objConditions, $objOptionalClauses, $mixParameterArray, $blnCountOnly) {
			// Get the Database Object for this Class
			$objDatabase = TableBankRequestIn::GetDatabase();

			// Create/Build out the QueryBuilder object with TableBankRequestIn-specific SELET and FROM fields
			$objQueryBuilder = new QQueryBuilder($objDatabase, 'table_bank_request_in');
			TableBankRequestIn::GetSelectFields($objQueryBuilder);
			$objQueryBuilder->AddFromItem('table_bank_request_in');

			// Set "CountOnly" option (if applicable)
			if ($blnCountOnly)
				$objQueryBuilder->SetCountOnlyFlag();

			// Apply Any Conditions
			if ($objConditions)
				try {
					$objConditions->UpdateQueryBuilder($objQueryBuilder);
				} catch (QCallerException $objExc) {
					$objExc->IncrementOffset();
					throw $objExc;
				}

			// Iterate through all the Optional Clauses (if any) and perform accordingly
			if ($objOptionalClauses) {
				if ($objOptionalClauses instanceof QQClause)
					$objOptionalClauses->UpdateQueryBuilder($objQueryBuilder);
				else if (is_array($objOptionalClauses))
					foreach ($objOptionalClauses as $objClause)
						$objClause->UpdateQueryBuilder($objQueryBuilder);
				else
					throw new QCallerException('Optional Clauses must be a QQClause object or an array of QQClause objects');
			}

			// Get the SQL Statement
			$strQuery = $objQueryBuilder->GetStatement();

			// Prepare the Statement with the Query Parameters (if applicable)
			if ($mixParameterArray) {
				if (is_array($mixParameterArray)) {
					if (count($mixParameterArray))
						$strQuery = $objDatabase->PrepareStatement($strQuery, $mixParameterArray);

					// Ensure that there are no other Unresolved Named Parameters
					if (strpos($strQuery, chr(QQNamedValue::DelimiterCode) . '{') !== false)
						throw new QCallerException('Unresolved named parameters in the query');
				} else
					throw new QCallerException('Parameter Array must be an array of name-value parameter pairs');
			}

			// Return the Objects
			return $strQuery;
		}

		/**
		 * Static Qcubed Query method to query for a single TableBankRequestIn object.
		 * Uses BuildQueryStatment to perform most of the work.
		 * @param QQCondition $objConditions any conditions on the query, itself
		 * @param QQClause[] $objOptionalClausees additional optional QQClause objects for this query
		 * @param mixed[] $mixParameterArray a array of name-value pairs to perform PrepareStatement with
		 * @return TableBankRequestIn the queried object
		 */
		public static function QuerySingle(QQCondition $objConditions, $objOptionalClauses = null, $mixParameterArray = null) {
			// Get the Query Statement
			try {
				$strQuery = TableBankRequestIn::BuildQueryStatement($objQueryBuilder, $objConditions, $objOptionalClauses, $mixParameterArray, false);
			} catch (QCallerException $objExc) {
				$objExc->IncrementOffset();
				throw $objExc;
			}
			
			// Perform the Query, Get the First Row, and Instantiate a new TableBankRequestIn object
			$objDbResult = $objQueryBuilder->Database->Query($strQuery);
			
			// Do we have to expand anything?
			if ($objQueryBuilder->ExpandAsArrayNodes) {
				$objToReturn = array();
				while ($objDbRow = $objDbResult->GetNextRow()) {
					$objItem = TableBankRequestIn::InstantiateDbRow($objDbRow, null, $objQueryBuilder->ExpandAsArrayNodes, $objToReturn, $objQueryBuilder->ColumnAliasArray);
					if ($objItem)
						$objToReturn[] = $objItem;					
				}			
				// Since we only want the object to return, lets return the object and not the array.
				return $objToReturn[0];
			} else {
				// No expands just return the first row
				$objToReturn = null;
				while ($objDbRow = $objDbResult->GetNextRow())
					$objToReturn = TableBankRequestIn::InstantiateDbRow($objDbRow, null, null, null, $objQueryBuilder->ColumnAliasArray);
			}
			
			return $objToReturn;
		}

		/**
		 * Static Qcubed Query method to query for an array of TableBankRequestIn objects.
		 * Uses BuildQueryStatment to perform most of the work.
		 * @param QQCondition $objConditions any conditions on the query, itself
		 * @param QQClause[] $objOptionalClausees additional optional QQClause objects for this query
		 * @param mixed[] $mixParameterArray a array of name-value pairs to perform PrepareStatement with
		 * @return TableBankRequestIn[] the queried objects as an array
		 */
		public static function QueryArray(QQCondition $objConditions, $objOptionalClauses = null, $mixParameterArray = null) {
			// Get the Query Statement
			try {
				$strQuery = TableBankRequestIn::BuildQueryStatement($objQueryBuilder, $objConditions, $objOptionalClauses, $mixParameterArray, false);
			} catch (QCallerException $objExc) {
				$objExc->IncrementOffset();
				throw $objExc;
			}

			// Perform the Query and Instantiate the Array Result
			$objDbResult = $objQueryBuilder->Database->Query($strQuery);
			return TableBankRequestIn::InstantiateDbResult($objDbResult, $objQueryBuilder->ExpandAsArrayNodes, $objQueryBuilder->ColumnAliasArray);
		}

		/**
		 * Static Qcubed Query method to query for a count of TableBankRequestIn objects.
		 * Uses BuildQueryStatment to perform most of the work.
		 * @param QQCondition $objConditions any conditions on the query, itself
		 * @param QQClause[] $objOptionalClausees additional optional QQClause objects for this query
		 * @param mixed[] $mixParameterArray a array of name-value pairs to perform PrepareStatement with
		 * @return integer the count of queried objects as an integer
		 */
		public static function QueryCount(QQCondition $objConditions, $objOptionalClauses = null, $mixParameterArray = null) {
			// Get the Query Statement
			try {
				$strQuery = TableBankRequestIn::BuildQueryStatement($objQueryBuilder, $objConditions, $objOptionalClauses, $mixParameterArray, true);
			} catch (QCallerException $objExc) {
				$objExc->IncrementOffset();
				throw $objExc;
			}

			// Perform the Query and return the row_count
			$objDbResult = $objQueryBuilder->Database->Query($strQuery);

			// Figure out if the query is using GroupBy
			$blnGrouped = false;

			if ($objOptionalClauses) foreach ($objOptionalClauses as $objClause) {
				if ($objClause instanceof QQGroupBy) {
					$blnGrouped = true;
					break;
				}
			}

			if ($blnGrouped)
				// Groups in this query - return the count of Groups (which is the count of all rows)
				return $objDbResult->CountRows();
			else {
				// No Groups - return the sql-calculated count(*) value
				$strDbRow = $objDbResult->FetchRow();
				return QType::Cast($strDbRow[0], QType::Integer);
			}
		}

		public static function QueryArrayCached(QQCondition $objConditions, $objOptionalClauses = null, $mixParameterArray = null, $blnForceUpdate = false) {
			// Get the Database Object for this Class
			$objDatabase = TableBankRequestIn::GetDatabase();

			$strQuery = TableBankRequestIn::BuildQueryStatement($objQueryBuilder, $objConditions, $objOptionalClauses, $mixParameterArray, false);
			
			$objCache = new QCache('qquery/tablebankrequestin', $strQuery);
			$cacheData = $objCache->GetData();
			
			if (!$cacheData || $blnForceUpdate) {
				$objDbResult = $objQueryBuilder->Database->Query($strQuery);
				$arrResult = TableBankRequestIn::InstantiateDbResult($objDbResult, $objQueryBuilder->ExpandAsArrayNodes, $objQueryBuilder->ColumnAliasArray);
				$objCache->SaveData(serialize($arrResult));
			} else {
				$arrResult = unserialize($cacheData);
			}
			
			return $arrResult;
		}

		/**
		 * Updates a QQueryBuilder with the SELECT fields for this TableBankRequestIn
		 * @param QQueryBuilder $objBuilder the Query Builder object to update
		 * @param string $strPrefix optional prefix to add to the SELECT fields
		 */
		public static function GetSelectFields(QQueryBuilder $objBuilder, $strPrefix = null) {
			if ($strPrefix) {
				$strTableName = $strPrefix;
				$strAliasPrefix = $strPrefix . '__';
			} else {
				$strTableName = 'table_bank_request_in';
				$strAliasPrefix = '';
			}

			$objBuilder->AddSelectItem($strTableName, 'id', $strAliasPrefix . 'id');
			$objBuilder->AddSelectItem($strTableName, 'user_id', $strAliasPrefix . 'user_id');
			$objBuilder->AddSelectItem($strTableName, 'currency', $strAliasPrefix . 'currency');
			$objBuilder->AddSelectItem($strTableName, 'amount', $strAliasPrefix . 'amount');
			$objBuilder->AddSelectItem($strTableName, 'fee_taken', $strAliasPrefix . 'fee_taken');
			$objBuilder->AddSelectItem($strTableName, 'user_name_from', $strAliasPrefix . 'user_name_from');
			$objBuilder->AddSelectItem($strTableName, 'process_admin_name', $strAliasPrefix . 'process_admin_name');
			$objBuilder->AddSelectItem($strTableName, 'in_date', $strAliasPrefix . 'in_date');
			$objBuilder->AddSelectItem($strTableName, 'request_date', $strAliasPrefix . 'request_date');
			$objBuilder->AddSelectItem($strTableName, 'process_date', $strAliasPrefix . 'process_date');
			$objBuilder->AddSelectItem($strTableName, 'processed', $strAliasPrefix . 'processed');
			$objBuilder->AddSelectItem($strTableName, 'active', $strAliasPrefix . 'active');
			$objBuilder->AddSelectItem($strTableName, 'status', $strAliasPrefix . 'status');
			$objBuilder->AddSelectItem($strTableName, 'transaction_id', $strAliasPrefix . 'transaction_id');
			$objBuilder->AddSelectItem($strTableName, 'process_transaction_id', $strAliasPrefix . 'process_transaction_id');
			$objBuilder->AddSelectItem($strTableName, 'ip', $strAliasPrefix . 'ip');
			$objBuilder->AddSelectItem($strTableName, 'actual_amount', $strAliasPrefix . 'actual_amount');
			$objBuilder->AddSelectItem($strTableName, 'actual_fee_taken', $strAliasPrefix . 'actual_fee_taken');
			$objBuilder->AddSelectItem($strTableName, 'bank_name', $strAliasPrefix . 'bank_name');
			$objBuilder->AddSelectItem($strTableName, 'bank_name_kana', $strAliasPrefix . 'bank_name_kana');
			$objBuilder->AddSelectItem($strTableName, 'branch_name', $strAliasPrefix . 'branch_name');
			$objBuilder->AddSelectItem($strTableName, 'branch_name_kana', $strAliasPrefix . 'branch_name_kana');
			$objBuilder->AddSelectItem($strTableName, 'bank_code', $strAliasPrefix . 'bank_code');
			$objBuilder->AddSelectItem($strTableName, 'branch_code', $strAliasPrefix . 'branch_code');
			$objBuilder->AddSelectItem($strTableName, 'account_name', $strAliasPrefix . 'account_name');
			$objBuilder->AddSelectItem($strTableName, 'account_type', $strAliasPrefix . 'account_type');
			$objBuilder->AddSelectItem($strTableName, 'account_id', $strAliasPrefix . 'account_id');
			$objBuilder->AddSelectItem($strTableName, 'description', $strAliasPrefix . 'description');
		}



		///////////////////////////////
		// INSTANTIATION-RELATED METHODS
		///////////////////////////////

		/**
		 * Instantiate a TableBankRequestIn from a Database Row.
		 * Takes in an optional strAliasPrefix, used in case another Object::InstantiateDbRow
		 * is calling this TableBankRequestIn::InstantiateDbRow in order to perform
		 * early binding on referenced objects.
		 * @param DatabaseRowBase $objDbRow
		 * @param string $strAliasPrefix
		 * @param string $strExpandAsArrayNodes
		 * @param QBaseClass $arrPreviousItem
		 * @param string[] $strColumnAliasArray
		 * @return TableBankRequestIn
		*/
		public static function InstantiateDbRow($objDbRow, $strAliasPrefix = null, $strExpandAsArrayNodes = null, $arrPreviousItems = null, $strColumnAliasArray = array()) {
			// If blank row, return null
			if (!$objDbRow) {
				return null;
			}

			// Create a new instance of the TableBankRequestIn object
			$objToReturn = new TableBankRequestIn();
			$objToReturn->__blnRestored = true;

			$strAliasName = array_key_exists($strAliasPrefix . 'id', $strColumnAliasArray) ? $strColumnAliasArray[$strAliasPrefix . 'id'] : $strAliasPrefix . 'id';
			$objToReturn->intId = $objDbRow->GetColumn($strAliasName, 'Integer');
			$strAliasName = array_key_exists($strAliasPrefix . 'user_id', $strColumnAliasArray) ? $strColumnAliasArray[$strAliasPrefix . 'user_id'] : $strAliasPrefix . 'user_id';
			$objToReturn->intUserId = $objDbRow->GetColumn($strAliasName, 'Integer');
			$strAliasName = array_key_exists($strAliasPrefix . 'currency', $strColumnAliasArray) ? $strColumnAliasArray[$strAliasPrefix . 'currency'] : $strAliasPrefix . 'currency';
			$objToReturn->intCurrency = $objDbRow->GetColumn($strAliasName, 'Integer');
			$strAliasName = array_key_exists($strAliasPrefix . 'amount', $strColumnAliasArray) ? $strColumnAliasArray[$strAliasPrefix . 'amount'] : $strAliasPrefix . 'amount';
			$objToReturn->intAmount = $objDbRow->GetColumn($strAliasName, 'Integer');
			$strAliasName = array_key_exists($strAliasPrefix . 'fee_taken', $strColumnAliasArray) ? $strColumnAliasArray[$strAliasPrefix . 'fee_taken'] : $strAliasPrefix . 'fee_taken';
			$objToReturn->intFeeTaken = $objDbRow->GetColumn($strAliasName, 'Integer');
			$strAliasName = array_key_exists($strAliasPrefix . 'user_name_from', $strColumnAliasArray) ? $strColumnAliasArray[$strAliasPrefix . 'user_name_from'] : $strAliasPrefix . 'user_name_from';
			$objToReturn->strUserNameFrom = $objDbRow->GetColumn($strAliasName, 'VarChar');
			$strAliasName = array_key_exists($strAliasPrefix . 'process_admin_name', $strColumnAliasArray) ? $strColumnAliasArray[$strAliasPrefix . 'process_admin_name'] : $strAliasPrefix . 'process_admin_name';
			$objToReturn->strProcessAdminName = $objDbRow->GetColumn($strAliasName, 'VarChar');
			$strAliasName = array_key_exists($strAliasPrefix . 'in_date', $strColumnAliasArray) ? $strColumnAliasArray[$strAliasPrefix . 'in_date'] : $strAliasPrefix . 'in_date';
			$objToReturn->dttInDate = $objDbRow->GetColumn($strAliasName, 'DateTime');
			$strAliasName = array_key_exists($strAliasPrefix . 'request_date', $strColumnAliasArray) ? $strColumnAliasArray[$strAliasPrefix . 'request_date'] : $strAliasPrefix . 'request_date';
			$objToReturn->dttRequestDate = $objDbRow->GetColumn($strAliasName, 'DateTime');
			$strAliasName = array_key_exists($strAliasPrefix . 'process_date', $strColumnAliasArray) ? $strColumnAliasArray[$strAliasPrefix . 'process_date'] : $strAliasPrefix . 'process_date';
			$objToReturn->dttProcessDate = $objDbRow->GetColumn($strAliasName, 'DateTime');
			$strAliasName = array_key_exists($strAliasPrefix . 'processed', $strColumnAliasArray) ? $strColumnAliasArray[$strAliasPrefix . 'processed'] : $strAliasPrefix . 'processed';
			$objToReturn->strProcessed = $objDbRow->GetColumn($strAliasName, 'VarChar');
			$strAliasName = array_key_exists($strAliasPrefix . 'active', $strColumnAliasArray) ? $strColumnAliasArray[$strAliasPrefix . 'active'] : $strAliasPrefix . 'active';
			$objToReturn->strActive = $objDbRow->GetColumn($strAliasName, 'VarChar');
			$strAliasName = array_key_exists($strAliasPrefix . 'status', $strColumnAliasArray) ? $strColumnAliasArray[$strAliasPrefix . 'status'] : $strAliasPrefix . 'status';
			$objToReturn->intStatus = $objDbRow->GetColumn($strAliasName, 'Integer');
			$strAliasName = array_key_exists($strAliasPrefix . 'transaction_id', $strColumnAliasArray) ? $strColumnAliasArray[$strAliasPrefix . 'transaction_id'] : $strAliasPrefix . 'transaction_id';
			$objToReturn->intTransactionId = $objDbRow->GetColumn($strAliasName, 'Integer');
			$strAliasName = array_key_exists($strAliasPrefix . 'process_transaction_id', $strColumnAliasArray) ? $strColumnAliasArray[$strAliasPrefix . 'process_transaction_id'] : $strAliasPrefix . 'process_transaction_id';
			$objToReturn->intProcessTransactionId = $objDbRow->GetColumn($strAliasName, 'Integer');
			$strAliasName = array_key_exists($strAliasPrefix . 'ip', $strColumnAliasArray) ? $strColumnAliasArray[$strAliasPrefix . 'ip'] : $strAliasPrefix . 'ip';
			$objToReturn->strIp = $objDbRow->GetColumn($strAliasName, 'VarChar');
			$strAliasName = array_key_exists($strAliasPrefix . 'actual_amount', $strColumnAliasArray) ? $strColumnAliasArray[$strAliasPrefix . 'actual_amount'] : $strAliasPrefix . 'actual_amount';
			$objToReturn->intActualAmount = $objDbRow->GetColumn($strAliasName, 'Integer');
			$strAliasName = array_key_exists($strAliasPrefix . 'actual_fee_taken', $strColumnAliasArray) ? $strColumnAliasArray[$strAliasPrefix . 'actual_fee_taken'] : $strAliasPrefix . 'actual_fee_taken';
			$objToReturn->intActualFeeTaken = $objDbRow->GetColumn($strAliasName, 'Integer');
			$strAliasName = array_key_exists($strAliasPrefix . 'bank_name', $strColumnAliasArray) ? $strColumnAliasArray[$strAliasPrefix . 'bank_name'] : $strAliasPrefix . 'bank_name';
			$objToReturn->strBankName = $objDbRow->GetColumn($strAliasName, 'VarChar');
			$strAliasName = array_key_exists($strAliasPrefix . 'bank_name_kana', $strColumnAliasArray) ? $strColumnAliasArray[$strAliasPrefix . 'bank_name_kana'] : $strAliasPrefix . 'bank_name_kana';
			$objToReturn->strBankNameKana = $objDbRow->GetColumn($strAliasName, 'VarChar');
			$strAliasName = array_key_exists($strAliasPrefix . 'branch_name', $strColumnAliasArray) ? $strColumnAliasArray[$strAliasPrefix . 'branch_name'] : $strAliasPrefix . 'branch_name';
			$objToReturn->strBranchName = $objDbRow->GetColumn($strAliasName, 'VarChar');
			$strAliasName = array_key_exists($strAliasPrefix . 'branch_name_kana', $strColumnAliasArray) ? $strColumnAliasArray[$strAliasPrefix . 'branch_name_kana'] : $strAliasPrefix . 'branch_name_kana';
			$objToReturn->strBranchNameKana = $objDbRow->GetColumn($strAliasName, 'VarChar');
			$strAliasName = array_key_exists($strAliasPrefix . 'bank_code', $strColumnAliasArray) ? $strColumnAliasArray[$strAliasPrefix . 'bank_code'] : $strAliasPrefix . 'bank_code';
			$objToReturn->strBankCode = $objDbRow->GetColumn($strAliasName, 'VarChar');
			$strAliasName = array_key_exists($strAliasPrefix . 'branch_code', $strColumnAliasArray) ? $strColumnAliasArray[$strAliasPrefix . 'branch_code'] : $strAliasPrefix . 'branch_code';
			$objToReturn->strBranchCode = $objDbRow->GetColumn($strAliasName, 'VarChar');
			$strAliasName = array_key_exists($strAliasPrefix . 'account_name', $strColumnAliasArray) ? $strColumnAliasArray[$strAliasPrefix . 'account_name'] : $strAliasPrefix . 'account_name';
			$objToReturn->strAccountName = $objDbRow->GetColumn($strAliasName, 'VarChar');
			$strAliasName = array_key_exists($strAliasPrefix . 'account_type', $strColumnAliasArray) ? $strColumnAliasArray[$strAliasPrefix . 'account_type'] : $strAliasPrefix . 'account_type';
			$objToReturn->strAccountType = $objDbRow->GetColumn($strAliasName, 'VarChar');
			$strAliasName = array_key_exists($strAliasPrefix . 'account_id', $strColumnAliasArray) ? $strColumnAliasArray[$strAliasPrefix . 'account_id'] : $strAliasPrefix . 'account_id';
			$objToReturn->strAccountId = $objDbRow->GetColumn($strAliasName, 'VarChar');
			$strAliasName = array_key_exists($strAliasPrefix . 'description', $strColumnAliasArray) ? $strColumnAliasArray[$strAliasPrefix . 'description'] : $strAliasPrefix . 'description';
			$objToReturn->strDescription = $objDbRow->GetColumn($strAliasName, 'VarChar');

			if (isset($arrPreviousItems) && is_array($arrPreviousItems)) {
				foreach ($arrPreviousItems as $objPreviousItem) {
					if ($objToReturn->Id != $objPreviousItem->Id) {
						continue;
					}

					// complete match - all primary key columns are the same
					return null;
				}
			}

			// Instantiate Virtual Attributes
			foreach ($objDbRow->GetColumnNameArray() as $strColumnName => $mixValue) {
				$strVirtualPrefix = $strAliasPrefix . '__';
				$strVirtualPrefixLength = strlen($strVirtualPrefix);
				if (substr($strColumnName, 0, $strVirtualPrefixLength) == $strVirtualPrefix)
					$objToReturn->__strVirtualAttributeArray[substr($strColumnName, $strVirtualPrefixLength)] = $mixValue;
			}

			// Prepare to Check for Early/Virtual Binding
			if (!$strAliasPrefix)
				$strAliasPrefix = 'table_bank_request_in__';

			// Check for User Early Binding
			$strAlias = $strAliasPrefix . 'user_id__id';
			$strAliasName = array_key_exists($strAlias, $strColumnAliasArray) ? $strColumnAliasArray[$strAlias] : $strAlias;
			if (!is_null($objDbRow->GetColumn($strAliasName)))
				$objToReturn->objUser = TableUserProject::InstantiateDbRow($objDbRow, $strAliasPrefix . 'user_id__', $strExpandAsArrayNodes, null, $strColumnAliasArray);

			// Check for Transaction Early Binding
			$strAlias = $strAliasPrefix . 'transaction_id__id';
			$strAliasName = array_key_exists($strAlias, $strColumnAliasArray) ? $strColumnAliasArray[$strAlias] : $strAlias;
			if (!is_null($objDbRow->GetColumn($strAliasName)))
				$objToReturn->objTransaction = TableTransaction::InstantiateDbRow($objDbRow, $strAliasPrefix . 'transaction_id__', $strExpandAsArrayNodes, null, $strColumnAliasArray);

			// Check for ProcessTransaction Early Binding
			$strAlias = $strAliasPrefix . 'process_transaction_id__id';
			$strAliasName = array_key_exists($strAlias, $strColumnAliasArray) ? $strColumnAliasArray[$strAlias] : $strAlias;
			if (!is_null($objDbRow->GetColumn($strAliasName)))
				$objToReturn->objProcessTransaction = TableTransaction::InstantiateDbRow($objDbRow, $strAliasPrefix . 'process_transaction_id__', $strExpandAsArrayNodes, null, $strColumnAliasArray);




			return $objToReturn;
		}

		/**
		 * Instantiate an array of TableBankRequestIns from a Database Result
		 * @param DatabaseResultBase $objDbResult
		 * @param string $strExpandAsArrayNodes
		 * @param string[] $strColumnAliasArray
		 * @return TableBankRequestIn[]
		 */
		public static function InstantiateDbResult(QDatabaseResultBase $objDbResult, $strExpandAsArrayNodes = null, $strColumnAliasArray = null) {
			$objToReturn = array();
			
			if (!$strColumnAliasArray)
				$strColumnAliasArray = array();

			// If blank resultset, then return empty array
			if (!$objDbResult)
				return $objToReturn;

			// Load up the return array with each row
			if ($strExpandAsArrayNodes) {
				$objToReturn = array();
				while ($objDbRow = $objDbResult->GetNextRow()) {
					$objItem = TableBankRequestIn::InstantiateDbRow($objDbRow, null, $strExpandAsArrayNodes, $objToReturn, $strColumnAliasArray);
					if ($objItem) {
						$objToReturn[] = $objItem;
					}
				}
			} else {
				while ($objDbRow = $objDbResult->GetNextRow())
					$objToReturn[] = TableBankRequestIn::InstantiateDbRow($objDbRow, null, null, null, $strColumnAliasArray);
			}

			return $objToReturn;
		}



		///////////////////////////////////////////////////
		// INDEX-BASED LOAD METHODS (Single Load and Array)
		///////////////////////////////////////////////////
			
		/**
		 * Load a single TableBankRequestIn object,
		 * by Id Index(es)
		 * @param integer $intId
		 * @param QQClause[] $objOptionalClauses additional optional QQClause objects for this query
		 * @return TableBankRequestIn
		*/
		public static function LoadById($intId, $objOptionalClauses = null) {
			return TableBankRequestIn::QuerySingle(
				QQ::AndCondition(
					QQ::Equal(QQN::TableBankRequestIn()->Id, $intId)
				),
				$objOptionalClauses
			);
		}
			
		/**
		 * Load an array of TableBankRequestIn objects,
		 * by UserId Index(es)
		 * @param integer $intUserId
		 * @param QQClause[] $objOptionalClauses additional optional QQClause objects for this query
		 * @return TableBankRequestIn[]
		*/
		public static function LoadArrayByUserId($intUserId, $objOptionalClauses = null) {
			// Call TableBankRequestIn::QueryArray to perform the LoadArrayByUserId query
			try {
				return TableBankRequestIn::QueryArray(
					QQ::Equal(QQN::TableBankRequestIn()->UserId, $intUserId),
					$objOptionalClauses);
			} catch (QCallerException $objExc) {
				$objExc->IncrementOffset();
				throw $objExc;
			}
		}

		/**
		 * Count TableBankRequestIns
		 * by UserId Index(es)
		 * @param integer $intUserId
		 * @return int
		*/
		public static function CountByUserId($intUserId) {
			// Call TableBankRequestIn::QueryCount to perform the CountByUserId query
			return TableBankRequestIn::QueryCount(
				QQ::Equal(QQN::TableBankRequestIn()->UserId, $intUserId)
			);
		}
			
		/**
		 * Load an array of TableBankRequestIn objects,
		 * by Currency Index(es)
		 * @param integer $intCurrency
		 * @param QQClause[] $objOptionalClauses additional optional QQClause objects for this query
		 * @return TableBankRequestIn[]
		*/
		public static function LoadArrayByCurrency($intCurrency, $objOptionalClauses = null) {
			// Call TableBankRequestIn::QueryArray to perform the LoadArrayByCurrency query
			try {
				return TableBankRequestIn::QueryArray(
					QQ::Equal(QQN::TableBankRequestIn()->Currency, $intCurrency),
					$objOptionalClauses);
			} catch (QCallerException $objExc) {
				$objExc->IncrementOffset();
				throw $objExc;
			}
		}

		/**
		 * Count TableBankRequestIns
		 * by Currency Index(es)
		 * @param integer $intCurrency
		 * @return int
		*/
		public static function CountByCurrency($intCurrency) {
			// Call TableBankRequestIn::QueryCount to perform the CountByCurrency query
			return TableBankRequestIn::QueryCount(
				QQ::Equal(QQN::TableBankRequestIn()->Currency, $intCurrency)
			);
		}
			
		/**
		 * Load an array of TableBankRequestIn objects,
		 * by Amount Index(es)
		 * @param integer $intAmount
		 * @param QQClause[] $objOptionalClauses additional optional QQClause objects for this query
		 * @return TableBankRequestIn[]
		*/
		public static function LoadArrayByAmount($intAmount, $objOptionalClauses = null) {
			// Call TableBankRequestIn::QueryArray to perform the LoadArrayByAmount query
			try {
				return TableBankRequestIn::QueryArray(
					QQ::Equal(QQN::TableBankRequestIn()->Amount, $intAmount),
					$objOptionalClauses);
			} catch (QCallerException $objExc) {
				$objExc->IncrementOffset();
				throw $objExc;
			}
		}

		/**
		 * Count TableBankRequestIns
		 * by Amount Index(es)
		 * @param integer $intAmount
		 * @return int
		*/
		public static function CountByAmount($intAmount) {
			// Call TableBankRequestIn::QueryCount to perform the CountByAmount query
			return TableBankRequestIn::QueryCount(
				QQ::Equal(QQN::TableBankRequestIn()->Amount, $intAmount)
			);
		}
			
		/**
		 * Load an array of TableBankRequestIn objects,
		 * by FeeTaken Index(es)
		 * @param integer $intFeeTaken
		 * @param QQClause[] $objOptionalClauses additional optional QQClause objects for this query
		 * @return TableBankRequestIn[]
		*/
		public static function LoadArrayByFeeTaken($intFeeTaken, $objOptionalClauses = null) {
			// Call TableBankRequestIn::QueryArray to perform the LoadArrayByFeeTaken query
			try {
				return TableBankRequestIn::QueryArray(
					QQ::Equal(QQN::TableBankRequestIn()->FeeTaken, $intFeeTaken),
					$objOptionalClauses);
			} catch (QCallerException $objExc) {
				$objExc->IncrementOffset();
				throw $objExc;
			}
		}

		/**
		 * Count TableBankRequestIns
		 * by FeeTaken Index(es)
		 * @param integer $intFeeTaken
		 * @return int
		*/
		public static function CountByFeeTaken($intFeeTaken) {
			// Call TableBankRequestIn::QueryCount to perform the CountByFeeTaken query
			return TableBankRequestIn::QueryCount(
				QQ::Equal(QQN::TableBankRequestIn()->FeeTaken, $intFeeTaken)
			);
		}
			
		/**
		 * Load an array of TableBankRequestIn objects,
		 * by UserNameFrom Index(es)
		 * @param string $strUserNameFrom
		 * @param QQClause[] $objOptionalClauses additional optional QQClause objects for this query
		 * @return TableBankRequestIn[]
		*/
		public static function LoadArrayByUserNameFrom($strUserNameFrom, $objOptionalClauses = null) {
			// Call TableBankRequestIn::QueryArray to perform the LoadArrayByUserNameFrom query
			try {
				return TableBankRequestIn::QueryArray(
					QQ::Equal(QQN::TableBankRequestIn()->UserNameFrom, $strUserNameFrom),
					$objOptionalClauses);
			} catch (QCallerException $objExc) {
				$objExc->IncrementOffset();
				throw $objExc;
			}
		}

		/**
		 * Count TableBankRequestIns
		 * by UserNameFrom Index(es)
		 * @param string $strUserNameFrom
		 * @return int
		*/
		public static function CountByUserNameFrom($strUserNameFrom) {
			// Call TableBankRequestIn::QueryCount to perform the CountByUserNameFrom query
			return TableBankRequestIn::QueryCount(
				QQ::Equal(QQN::TableBankRequestIn()->UserNameFrom, $strUserNameFrom)
			);
		}
			
		/**
		 * Load an array of TableBankRequestIn objects,
		 * by ProcessAdminName Index(es)
		 * @param string $strProcessAdminName
		 * @param QQClause[] $objOptionalClauses additional optional QQClause objects for this query
		 * @return TableBankRequestIn[]
		*/
		public static function LoadArrayByProcessAdminName($strProcessAdminName, $objOptionalClauses = null) {
			// Call TableBankRequestIn::QueryArray to perform the LoadArrayByProcessAdminName query
			try {
				return TableBankRequestIn::QueryArray(
					QQ::Equal(QQN::TableBankRequestIn()->ProcessAdminName, $strProcessAdminName),
					$objOptionalClauses);
			} catch (QCallerException $objExc) {
				$objExc->IncrementOffset();
				throw $objExc;
			}
		}

		/**
		 * Count TableBankRequestIns
		 * by ProcessAdminName Index(es)
		 * @param string $strProcessAdminName
		 * @return int
		*/
		public static function CountByProcessAdminName($strProcessAdminName) {
			// Call TableBankRequestIn::QueryCount to perform the CountByProcessAdminName query
			return TableBankRequestIn::QueryCount(
				QQ::Equal(QQN::TableBankRequestIn()->ProcessAdminName, $strProcessAdminName)
			);
		}
			
		/**
		 * Load an array of TableBankRequestIn objects,
		 * by InDate Index(es)
		 * @param QDateTime $dttInDate
		 * @param QQClause[] $objOptionalClauses additional optional QQClause objects for this query
		 * @return TableBankRequestIn[]
		*/
		public static function LoadArrayByInDate($dttInDate, $objOptionalClauses = null) {
			// Call TableBankRequestIn::QueryArray to perform the LoadArrayByInDate query
			try {
				return TableBankRequestIn::QueryArray(
					QQ::Equal(QQN::TableBankRequestIn()->InDate, $dttInDate),
					$objOptionalClauses);
			} catch (QCallerException $objExc) {
				$objExc->IncrementOffset();
				throw $objExc;
			}
		}

		/**
		 * Count TableBankRequestIns
		 * by InDate Index(es)
		 * @param QDateTime $dttInDate
		 * @return int
		*/
		public static function CountByInDate($dttInDate) {
			// Call TableBankRequestIn::QueryCount to perform the CountByInDate query
			return TableBankRequestIn::QueryCount(
				QQ::Equal(QQN::TableBankRequestIn()->InDate, $dttInDate)
			);
		}
			
		/**
		 * Load an array of TableBankRequestIn objects,
		 * by ProcessDate Index(es)
		 * @param QDateTime $dttProcessDate
		 * @param QQClause[] $objOptionalClauses additional optional QQClause objects for this query
		 * @return TableBankRequestIn[]
		*/
		public static function LoadArrayByProcessDate($dttProcessDate, $objOptionalClauses = null) {
			// Call TableBankRequestIn::QueryArray to perform the LoadArrayByProcessDate query
			try {
				return TableBankRequestIn::QueryArray(
					QQ::Equal(QQN::TableBankRequestIn()->ProcessDate, $dttProcessDate),
					$objOptionalClauses);
			} catch (QCallerException $objExc) {
				$objExc->IncrementOffset();
				throw $objExc;
			}
		}

		/**
		 * Count TableBankRequestIns
		 * by ProcessDate Index(es)
		 * @param QDateTime $dttProcessDate
		 * @return int
		*/
		public static function CountByProcessDate($dttProcessDate) {
			// Call TableBankRequestIn::QueryCount to perform the CountByProcessDate query
			return TableBankRequestIn::QueryCount(
				QQ::Equal(QQN::TableBankRequestIn()->ProcessDate, $dttProcessDate)
			);
		}
			
		/**
		 * Load an array of TableBankRequestIn objects,
		 * by Processed Index(es)
		 * @param string $strProcessed
		 * @param QQClause[] $objOptionalClauses additional optional QQClause objects for this query
		 * @return TableBankRequestIn[]
		*/
		public static function LoadArrayByProcessed($strProcessed, $objOptionalClauses = null) {
			// Call TableBankRequestIn::QueryArray to perform the LoadArrayByProcessed query
			try {
				return TableBankRequestIn::QueryArray(
					QQ::Equal(QQN::TableBankRequestIn()->Processed, $strProcessed),
					$objOptionalClauses);
			} catch (QCallerException $objExc) {
				$objExc->IncrementOffset();
				throw $objExc;
			}
		}

		/**
		 * Count TableBankRequestIns
		 * by Processed Index(es)
		 * @param string $strProcessed
		 * @return int
		*/
		public static function CountByProcessed($strProcessed) {
			// Call TableBankRequestIn::QueryCount to perform the CountByProcessed query
			return TableBankRequestIn::QueryCount(
				QQ::Equal(QQN::TableBankRequestIn()->Processed, $strProcessed)
			);
		}
			
		/**
		 * Load an array of TableBankRequestIn objects,
		 * by Active Index(es)
		 * @param string $strActive
		 * @param QQClause[] $objOptionalClauses additional optional QQClause objects for this query
		 * @return TableBankRequestIn[]
		*/
		public static function LoadArrayByActive($strActive, $objOptionalClauses = null) {
			// Call TableBankRequestIn::QueryArray to perform the LoadArrayByActive query
			try {
				return TableBankRequestIn::QueryArray(
					QQ::Equal(QQN::TableBankRequestIn()->Active, $strActive),
					$objOptionalClauses);
			} catch (QCallerException $objExc) {
				$objExc->IncrementOffset();
				throw $objExc;
			}
		}

		/**
		 * Count TableBankRequestIns
		 * by Active Index(es)
		 * @param string $strActive
		 * @return int
		*/
		public static function CountByActive($strActive) {
			// Call TableBankRequestIn::QueryCount to perform the CountByActive query
			return TableBankRequestIn::QueryCount(
				QQ::Equal(QQN::TableBankRequestIn()->Active, $strActive)
			);
		}
			
		/**
		 * Load an array of TableBankRequestIn objects,
		 * by TransactionId Index(es)
		 * @param integer $intTransactionId
		 * @param QQClause[] $objOptionalClauses additional optional QQClause objects for this query
		 * @return TableBankRequestIn[]
		*/
		public static function LoadArrayByTransactionId($intTransactionId, $objOptionalClauses = null) {
			// Call TableBankRequestIn::QueryArray to perform the LoadArrayByTransactionId query
			try {
				return TableBankRequestIn::QueryArray(
					QQ::Equal(QQN::TableBankRequestIn()->TransactionId, $intTransactionId),
					$objOptionalClauses);
			} catch (QCallerException $objExc) {
				$objExc->IncrementOffset();
				throw $objExc;
			}
		}

		/**
		 * Count TableBankRequestIns
		 * by TransactionId Index(es)
		 * @param integer $intTransactionId
		 * @return int
		*/
		public static function CountByTransactionId($intTransactionId) {
			// Call TableBankRequestIn::QueryCount to perform the CountByTransactionId query
			return TableBankRequestIn::QueryCount(
				QQ::Equal(QQN::TableBankRequestIn()->TransactionId, $intTransactionId)
			);
		}
			
		/**
		 * Load an array of TableBankRequestIn objects,
		 * by ProcessTransactionId Index(es)
		 * @param integer $intProcessTransactionId
		 * @param QQClause[] $objOptionalClauses additional optional QQClause objects for this query
		 * @return TableBankRequestIn[]
		*/
		public static function LoadArrayByProcessTransactionId($intProcessTransactionId, $objOptionalClauses = null) {
			// Call TableBankRequestIn::QueryArray to perform the LoadArrayByProcessTransactionId query
			try {
				return TableBankRequestIn::QueryArray(
					QQ::Equal(QQN::TableBankRequestIn()->ProcessTransactionId, $intProcessTransactionId),
					$objOptionalClauses);
			} catch (QCallerException $objExc) {
				$objExc->IncrementOffset();
				throw $objExc;
			}
		}

		/**
		 * Count TableBankRequestIns
		 * by ProcessTransactionId Index(es)
		 * @param integer $intProcessTransactionId
		 * @return int
		*/
		public static function CountByProcessTransactionId($intProcessTransactionId) {
			// Call TableBankRequestIn::QueryCount to perform the CountByProcessTransactionId query
			return TableBankRequestIn::QueryCount(
				QQ::Equal(QQN::TableBankRequestIn()->ProcessTransactionId, $intProcessTransactionId)
			);
		}
			
		/**
		 * Load an array of TableBankRequestIn objects,
		 * by AccountId Index(es)
		 * @param string $strAccountId
		 * @param QQClause[] $objOptionalClauses additional optional QQClause objects for this query
		 * @return TableBankRequestIn[]
		*/
		public static function LoadArrayByAccountId($strAccountId, $objOptionalClauses = null) {
			// Call TableBankRequestIn::QueryArray to perform the LoadArrayByAccountId query
			try {
				return TableBankRequestIn::QueryArray(
					QQ::Equal(QQN::TableBankRequestIn()->AccountId, $strAccountId),
					$objOptionalClauses);
			} catch (QCallerException $objExc) {
				$objExc->IncrementOffset();
				throw $objExc;
			}
		}

		/**
		 * Count TableBankRequestIns
		 * by AccountId Index(es)
		 * @param string $strAccountId
		 * @return int
		*/
		public static function CountByAccountId($strAccountId) {
			// Call TableBankRequestIn::QueryCount to perform the CountByAccountId query
			return TableBankRequestIn::QueryCount(
				QQ::Equal(QQN::TableBankRequestIn()->AccountId, $strAccountId)
			);
		}
			
		/**
		 * Load an array of TableBankRequestIn objects,
		 * by Status Index(es)
		 * @param integer $intStatus
		 * @param QQClause[] $objOptionalClauses additional optional QQClause objects for this query
		 * @return TableBankRequestIn[]
		*/
		public static function LoadArrayByStatus($intStatus, $objOptionalClauses = null) {
			// Call TableBankRequestIn::QueryArray to perform the LoadArrayByStatus query
			try {
				return TableBankRequestIn::QueryArray(
					QQ::Equal(QQN::TableBankRequestIn()->Status, $intStatus),
					$objOptionalClauses);
			} catch (QCallerException $objExc) {
				$objExc->IncrementOffset();
				throw $objExc;
			}
		}

		/**
		 * Count TableBankRequestIns
		 * by Status Index(es)
		 * @param integer $intStatus
		 * @return int
		*/
		public static function CountByStatus($intStatus) {
			// Call TableBankRequestIn::QueryCount to perform the CountByStatus query
			return TableBankRequestIn::QueryCount(
				QQ::Equal(QQN::TableBankRequestIn()->Status, $intStatus)
			);
		}
			
		/**
		 * Load an array of TableBankRequestIn objects,
		 * by Status, RequestDate, ProcessDate, AccountId, UserId Index(es)
		 * @param integer $intStatus
		 * @param QDateTime $dttRequestDate
		 * @param QDateTime $dttProcessDate
		 * @param string $strAccountId
		 * @param integer $intUserId
		 * @param QQClause[] $objOptionalClauses additional optional QQClause objects for this query
		 * @return TableBankRequestIn[]
		*/
		public static function LoadArrayByStatusRequestDateProcessDateAccountIdUserId($intStatus, $dttRequestDate, $dttProcessDate, $strAccountId, $intUserId, $objOptionalClauses = null) {
			// Call TableBankRequestIn::QueryArray to perform the LoadArrayByStatusRequestDateProcessDateAccountIdUserId query
			try {
				return TableBankRequestIn::QueryArray(
					QQ::AndCondition(
					QQ::Equal(QQN::TableBankRequestIn()->Status, $intStatus),
					QQ::Equal(QQN::TableBankRequestIn()->RequestDate, $dttRequestDate),
					QQ::Equal(QQN::TableBankRequestIn()->ProcessDate, $dttProcessDate),
					QQ::Equal(QQN::TableBankRequestIn()->AccountId, $strAccountId),
					QQ::Equal(QQN::TableBankRequestIn()->UserId, $intUserId)
					),
					$objOptionalClauses);
			} catch (QCallerException $objExc) {
				$objExc->IncrementOffset();
				throw $objExc;
			}
		}

		/**
		 * Count TableBankRequestIns
		 * by Status, RequestDate, ProcessDate, AccountId, UserId Index(es)
		 * @param integer $intStatus
		 * @param QDateTime $dttRequestDate
		 * @param QDateTime $dttProcessDate
		 * @param string $strAccountId
		 * @param integer $intUserId
		 * @return int
		*/
		public static function CountByStatusRequestDateProcessDateAccountIdUserId($intStatus, $dttRequestDate, $dttProcessDate, $strAccountId, $intUserId) {
			// Call TableBankRequestIn::QueryCount to perform the CountByStatusRequestDateProcessDateAccountIdUserId query
			return TableBankRequestIn::QueryCount(
				QQ::AndCondition(
				QQ::Equal(QQN::TableBankRequestIn()->Status, $intStatus),
				QQ::Equal(QQN::TableBankRequestIn()->RequestDate, $dttRequestDate),
				QQ::Equal(QQN::TableBankRequestIn()->ProcessDate, $dttProcessDate),
				QQ::Equal(QQN::TableBankRequestIn()->AccountId, $strAccountId),
				QQ::Equal(QQN::TableBankRequestIn()->UserId, $intUserId)
				)
			);
		}



		////////////////////////////////////////////////////
		// INDEX-BASED LOAD METHODS (Array via Many to Many)
		////////////////////////////////////////////////////




		//////////////////////////
		// SAVE, DELETE AND RELOAD
		//////////////////////////

		/**
		 * Save this TableBankRequestIn
		 * @param bool $blnForceInsert
		 * @param bool $blnForceUpdate
		 * @return int
		 */
		public function Save($blnForceInsert = false, $blnForceUpdate = false) {
			// Get the Database Object for this Class
			$objDatabase = TableBankRequestIn::GetDatabase();

			$mixToReturn = null;

			try {
				if ((!$this->__blnRestored) || ($blnForceInsert)) {
					// Perform an INSERT query
					$objDatabase->NonQuery('
						INSERT INTO `table_bank_request_in` (
							`user_id`,
							`currency`,
							`amount`,
							`fee_taken`,
							`user_name_from`,
							`process_admin_name`,
							`in_date`,
							`request_date`,
							`process_date`,
							`processed`,
							`active`,
							`status`,
							`transaction_id`,
							`process_transaction_id`,
							`ip`,
							`actual_amount`,
							`actual_fee_taken`,
							`bank_name`,
							`bank_name_kana`,
							`branch_name`,
							`branch_name_kana`,
							`bank_code`,
							`branch_code`,
							`account_name`,
							`account_type`,
							`account_id`,
							`description`
						) VALUES (
							' . $objDatabase->SqlVariable($this->intUserId) . ',
							' . $objDatabase->SqlVariable($this->intCurrency) . ',
							' . $objDatabase->SqlVariable($this->intAmount) . ',
							' . $objDatabase->SqlVariable($this->intFeeTaken) . ',
							' . $objDatabase->SqlVariable($this->strUserNameFrom) . ',
							' . $objDatabase->SqlVariable($this->strProcessAdminName) . ',
							' . $objDatabase->SqlVariable($this->dttInDate) . ',
							' . $objDatabase->SqlVariable($this->dttRequestDate) . ',
							' . $objDatabase->SqlVariable($this->dttProcessDate) . ',
							' . $objDatabase->SqlVariable($this->strProcessed) . ',
							' . $objDatabase->SqlVariable($this->strActive) . ',
							' . $objDatabase->SqlVariable($this->intStatus) . ',
							' . $objDatabase->SqlVariable($this->intTransactionId) . ',
							' . $objDatabase->SqlVariable($this->intProcessTransactionId) . ',
							' . $objDatabase->SqlVariable($this->strIp) . ',
							' . $objDatabase->SqlVariable($this->intActualAmount) . ',
							' . $objDatabase->SqlVariable($this->intActualFeeTaken) . ',
							' . $objDatabase->SqlVariable($this->strBankName) . ',
							' . $objDatabase->SqlVariable($this->strBankNameKana) . ',
							' . $objDatabase->SqlVariable($this->strBranchName) . ',
							' . $objDatabase->SqlVariable($this->strBranchNameKana) . ',
							' . $objDatabase->SqlVariable($this->strBankCode) . ',
							' . $objDatabase->SqlVariable($this->strBranchCode) . ',
							' . $objDatabase->SqlVariable($this->strAccountName) . ',
							' . $objDatabase->SqlVariable($this->strAccountType) . ',
							' . $objDatabase->SqlVariable($this->strAccountId) . ',
							' . $objDatabase->SqlVariable($this->strDescription) . '
						)
					');

					// Update Identity column and return its value
					$mixToReturn = $this->intId = $objDatabase->InsertId('table_bank_request_in', 'id');
				} else {
					// Perform an UPDATE query

					// First checking for Optimistic Locking constraints (if applicable)

					// Perform the UPDATE query
					$objDatabase->NonQuery('
						UPDATE
							`table_bank_request_in`
						SET
							`user_id` = ' . $objDatabase->SqlVariable($this->intUserId) . ',
							`currency` = ' . $objDatabase->SqlVariable($this->intCurrency) . ',
							`amount` = ' . $objDatabase->SqlVariable($this->intAmount) . ',
							`fee_taken` = ' . $objDatabase->SqlVariable($this->intFeeTaken) . ',
							`user_name_from` = ' . $objDatabase->SqlVariable($this->strUserNameFrom) . ',
							`process_admin_name` = ' . $objDatabase->SqlVariable($this->strProcessAdminName) . ',
							`in_date` = ' . $objDatabase->SqlVariable($this->dttInDate) . ',
							`request_date` = ' . $objDatabase->SqlVariable($this->dttRequestDate) . ',
							`process_date` = ' . $objDatabase->SqlVariable($this->dttProcessDate) . ',
							`processed` = ' . $objDatabase->SqlVariable($this->strProcessed) . ',
							`active` = ' . $objDatabase->SqlVariable($this->strActive) . ',
							`status` = ' . $objDatabase->SqlVariable($this->intStatus) . ',
							`transaction_id` = ' . $objDatabase->SqlVariable($this->intTransactionId) . ',
							`process_transaction_id` = ' . $objDatabase->SqlVariable($this->intProcessTransactionId) . ',
							`ip` = ' . $objDatabase->SqlVariable($this->strIp) . ',
							`actual_amount` = ' . $objDatabase->SqlVariable($this->intActualAmount) . ',
							`actual_fee_taken` = ' . $objDatabase->SqlVariable($this->intActualFeeTaken) . ',
							`bank_name` = ' . $objDatabase->SqlVariable($this->strBankName) . ',
							`bank_name_kana` = ' . $objDatabase->SqlVariable($this->strBankNameKana) . ',
							`branch_name` = ' . $objDatabase->SqlVariable($this->strBranchName) . ',
							`branch_name_kana` = ' . $objDatabase->SqlVariable($this->strBranchNameKana) . ',
							`bank_code` = ' . $objDatabase->SqlVariable($this->strBankCode) . ',
							`branch_code` = ' . $objDatabase->SqlVariable($this->strBranchCode) . ',
							`account_name` = ' . $objDatabase->SqlVariable($this->strAccountName) . ',
							`account_type` = ' . $objDatabase->SqlVariable($this->strAccountType) . ',
							`account_id` = ' . $objDatabase->SqlVariable($this->strAccountId) . ',
							`description` = ' . $objDatabase->SqlVariable($this->strDescription) . '
						WHERE
							`id` = ' . $objDatabase->SqlVariable($this->intId) . '
					');
				}

			} catch (QCallerException $objExc) {
				$objExc->IncrementOffset();
				throw $objExc;
			}

			// Update __blnRestored and any Non-Identity PK Columns (if applicable)
			$this->__blnRestored = true;


			// Return 
			return $mixToReturn;
		}

		/**
		 * Delete this TableBankRequestIn
		 * @return void
		 */
		public function Delete() {
			if ((is_null($this->intId)))
				throw new QUndefinedPrimaryKeyException('Cannot delete this TableBankRequestIn with an unset primary key.');

			// Get the Database Object for this Class
			$objDatabase = TableBankRequestIn::GetDatabase();


			// Perform the SQL Query
			$objDatabase->NonQuery('
				DELETE FROM
					`table_bank_request_in`
				WHERE
					`id` = ' . $objDatabase->SqlVariable($this->intId) . '');
		}

		/**
		 * Delete all TableBankRequestIns
		 * @return void
		 */
		public static function DeleteAll() {
			// Get the Database Object for this Class
			$objDatabase = TableBankRequestIn::GetDatabase();

			// Perform the Query
			$objDatabase->NonQuery('
				DELETE FROM
					`table_bank_request_in`');
		}

		/**
		 * Truncate table_bank_request_in table
		 * @return void
		 */
		public static function Truncate() {
			// Get the Database Object for this Class
			$objDatabase = TableBankRequestIn::GetDatabase();

			// Perform the Query
			$objDatabase->NonQuery('
				TRUNCATE `table_bank_request_in`');
		}

		/**
		 * Reload this TableBankRequestIn from the database.
		 * @return void
		 */
		public function Reload() {
			// Make sure we are actually Restored from the database
			if (!$this->__blnRestored)
				throw new QCallerException('Cannot call Reload() on a new, unsaved TableBankRequestIn object.');

			// Reload the Object
			$objReloaded = TableBankRequestIn::Load($this->intId);

			// Update $this's local variables to match
			$this->UserId = $objReloaded->UserId;
			$this->intCurrency = $objReloaded->intCurrency;
			$this->intAmount = $objReloaded->intAmount;
			$this->intFeeTaken = $objReloaded->intFeeTaken;
			$this->strUserNameFrom = $objReloaded->strUserNameFrom;
			$this->strProcessAdminName = $objReloaded->strProcessAdminName;
			$this->dttInDate = $objReloaded->dttInDate;
			$this->dttRequestDate = $objReloaded->dttRequestDate;
			$this->dttProcessDate = $objReloaded->dttProcessDate;
			$this->strProcessed = $objReloaded->strProcessed;
			$this->strActive = $objReloaded->strActive;
			$this->intStatus = $objReloaded->intStatus;
			$this->TransactionId = $objReloaded->TransactionId;
			$this->ProcessTransactionId = $objReloaded->ProcessTransactionId;
			$this->strIp = $objReloaded->strIp;
			$this->intActualAmount = $objReloaded->intActualAmount;
			$this->intActualFeeTaken = $objReloaded->intActualFeeTaken;
			$this->strBankName = $objReloaded->strBankName;
			$this->strBankNameKana = $objReloaded->strBankNameKana;
			$this->strBranchName = $objReloaded->strBranchName;
			$this->strBranchNameKana = $objReloaded->strBranchNameKana;
			$this->strBankCode = $objReloaded->strBankCode;
			$this->strBranchCode = $objReloaded->strBranchCode;
			$this->strAccountName = $objReloaded->strAccountName;
			$this->strAccountType = $objReloaded->strAccountType;
			$this->strAccountId = $objReloaded->strAccountId;
			$this->strDescription = $objReloaded->strDescription;
		}



		////////////////////
		// PUBLIC OVERRIDERS
		////////////////////

				/**
		 * Override method to perform a property "Get"
		 * This will get the value of $strName
		 *
		 * @param string $strName Name of the property to get
		 * @return mixed
		 */
		public function __get($strName) {
			switch ($strName) {
				///////////////////
				// Member Variables
				///////////////////
				case 'Id':
					/**
					 * Gets the value for intId (Read-Only PK)
					 * @return integer
					 */
					return $this->intId;

				case 'UserId':
					/**
					 * Gets the value for intUserId (Not Null)
					 * @return integer
					 */
					return $this->intUserId;

				case 'Currency':
					/**
					 * Gets the value for intCurrency 
					 * @return integer
					 */
					return $this->intCurrency;

				case 'Amount':
					/**
					 * Gets the value for intAmount (Not Null)
					 * @return integer
					 */
					return $this->intAmount;

				case 'FeeTaken':
					/**
					 * Gets the value for intFeeTaken (Not Null)
					 * @return integer
					 */
					return $this->intFeeTaken;

				case 'UserNameFrom':
					/**
					 * Gets the value for strUserNameFrom (Not Null)
					 * @return string
					 */
					return $this->strUserNameFrom;

				case 'ProcessAdminName':
					/**
					 * Gets the value for strProcessAdminName 
					 * @return string
					 */
					return $this->strProcessAdminName;

				case 'InDate':
					/**
					 * Gets the value for dttInDate 
					 * @return QDateTime
					 */
					return $this->dttInDate;

				case 'RequestDate':
					/**
					 * Gets the value for dttRequestDate 
					 * @return QDateTime
					 */
					return $this->dttRequestDate;

				case 'ProcessDate':
					/**
					 * Gets the value for dttProcessDate 
					 * @return QDateTime
					 */
					return $this->dttProcessDate;

				case 'Processed':
					/**
					 * Gets the value for strProcessed (Not Null)
					 * @return string
					 */
					return $this->strProcessed;

				case 'Active':
					/**
					 * Gets the value for strActive 
					 * @return string
					 */
					return $this->strActive;

				case 'Status':
					/**
					 * Gets the value for intStatus (Not Null)
					 * @return integer
					 */
					return $this->intStatus;

				case 'TransactionId':
					/**
					 * Gets the value for intTransactionId 
					 * @return integer
					 */
					return $this->intTransactionId;

				case 'ProcessTransactionId':
					/**
					 * Gets the value for intProcessTransactionId 
					 * @return integer
					 */
					return $this->intProcessTransactionId;

				case 'Ip':
					/**
					 * Gets the value for strIp 
					 * @return string
					 */
					return $this->strIp;

				case 'ActualAmount':
					/**
					 * Gets the value for intActualAmount (Not Null)
					 * @return integer
					 */
					return $this->intActualAmount;

				case 'ActualFeeTaken':
					/**
					 * Gets the value for intActualFeeTaken (Not Null)
					 * @return integer
					 */
					return $this->intActualFeeTaken;

				case 'BankName':
					/**
					 * Gets the value for strBankName 
					 * @return string
					 */
					return $this->strBankName;

				case 'BankNameKana':
					/**
					 * Gets the value for strBankNameKana 
					 * @return string
					 */
					return $this->strBankNameKana;

				case 'BranchName':
					/**
					 * Gets the value for strBranchName 
					 * @return string
					 */
					return $this->strBranchName;

				case 'BranchNameKana':
					/**
					 * Gets the value for strBranchNameKana 
					 * @return string
					 */
					return $this->strBranchNameKana;

				case 'BankCode':
					/**
					 * Gets the value for strBankCode 
					 * @return string
					 */
					return $this->strBankCode;

				case 'BranchCode':
					/**
					 * Gets the value for strBranchCode 
					 * @return string
					 */
					return $this->strBranchCode;

				case 'AccountName':
					/**
					 * Gets the value for strAccountName 
					 * @return string
					 */
					return $this->strAccountName;

				case 'AccountType':
					/**
					 * Gets the value for strAccountType 
					 * @return string
					 */
					return $this->strAccountType;

				case 'AccountId':
					/**
					 * Gets the value for strAccountId 
					 * @return string
					 */
					return $this->strAccountId;

				case 'Description':
					/**
					 * Gets the value for strDescription 
					 * @return string
					 */
					return $this->strDescription;


				///////////////////
				// Member Objects
				///////////////////
				case 'User':
					/**
					 * Gets the value for the TableUserProject object referenced by intUserId (Not Null)
					 * @return TableUserProject
					 */
					try {
						if ((!$this->objUser) && (!is_null($this->intUserId)))
							$this->objUser = TableUserProject::Load($this->intUserId);
						return $this->objUser;
					} catch (QCallerException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}

				case 'Transaction':
					/**
					 * Gets the value for the TableTransaction object referenced by intTransactionId 
					 * @return TableTransaction
					 */
					try {
						if ((!$this->objTransaction) && (!is_null($this->intTransactionId)))
							$this->objTransaction = TableTransaction::Load($this->intTransactionId);
						return $this->objTransaction;
					} catch (QCallerException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}

				case 'ProcessTransaction':
					/**
					 * Gets the value for the TableTransaction object referenced by intProcessTransactionId 
					 * @return TableTransaction
					 */
					try {
						if ((!$this->objProcessTransaction) && (!is_null($this->intProcessTransactionId)))
							$this->objProcessTransaction = TableTransaction::Load($this->intProcessTransactionId);
						return $this->objProcessTransaction;
					} catch (QCallerException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}


				////////////////////////////
				// Virtual Object References (Many to Many and Reverse References)
				// (If restored via a "Many-to" expansion)
				////////////////////////////


				case '__Restored':
					return $this->__blnRestored;

				default:
					try {
						return parent::__get($strName);
					} catch (QCallerException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}
			}
		}

				/**
		 * Override method to perform a property "Set"
		 * This will set the property $strName to be $mixValue
		 *
		 * @param string $strName Name of the property to set
		 * @param string $mixValue New value of the property
		 * @return mixed
		 */
		public function __set($strName, $mixValue) {
			switch ($strName) {
				///////////////////
				// Member Variables
				///////////////////
				case 'UserId':
					/**
					 * Sets the value for intUserId (Not Null)
					 * @param integer $mixValue
					 * @return integer
					 */
					try {
						$this->objUser = null;
						return ($this->intUserId = QType::Cast($mixValue, QType::Integer));
					} catch (QCallerException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}

				case 'Currency':
					/**
					 * Sets the value for intCurrency 
					 * @param integer $mixValue
					 * @return integer
					 */
					try {
						return ($this->intCurrency = QType::Cast($mixValue, QType::Integer));
					} catch (QCallerException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}

				case 'Amount':
					/**
					 * Sets the value for intAmount (Not Null)
					 * @param integer $mixValue
					 * @return integer
					 */
					try {
						return ($this->intAmount = QType::Cast($mixValue, QType::Integer));
					} catch (QCallerException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}

				case 'FeeTaken':
					/**
					 * Sets the value for intFeeTaken (Not Null)
					 * @param integer $mixValue
					 * @return integer
					 */
					try {
						return ($this->intFeeTaken = QType::Cast($mixValue, QType::Integer));
					} catch (QCallerException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}

				case 'UserNameFrom':
					/**
					 * Sets the value for strUserNameFrom (Not Null)
					 * @param string $mixValue
					 * @return string
					 */
					try {
						return ($this->strUserNameFrom = QType::Cast($mixValue, QType::String));
					} catch (QCallerException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}

				case 'ProcessAdminName':
					/**
					 * Sets the value for strProcessAdminName 
					 * @param string $mixValue
					 * @return string
					 */
					try {
						return ($this->strProcessAdminName = QType::Cast($mixValue, QType::String));
					} catch (QCallerException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}

				case 'InDate':
					/**
					 * Sets the value for dttInDate 
					 * @param QDateTime $mixValue
					 * @return QDateTime
					 */
					try {
						return ($this->dttInDate = QType::Cast($mixValue, QType::DateTime));
					} catch (QCallerException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}

				case 'RequestDate':
					/**
					 * Sets the value for dttRequestDate 
					 * @param QDateTime $mixValue
					 * @return QDateTime
					 */
					try {
						return ($this->dttRequestDate = QType::Cast($mixValue, QType::DateTime));
					} catch (QCallerException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}

				case 'ProcessDate':
					/**
					 * Sets the value for dttProcessDate 
					 * @param QDateTime $mixValue
					 * @return QDateTime
					 */
					try {
						return ($this->dttProcessDate = QType::Cast($mixValue, QType::DateTime));
					} catch (QCallerException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}

				case 'Processed':
					/**
					 * Sets the value for strProcessed (Not Null)
					 * @param string $mixValue
					 * @return string
					 */
					try {
						return ($this->strProcessed = QType::Cast($mixValue, QType::String));
					} catch (QCallerException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}

				case 'Active':
					/**
					 * Sets the value for strActive 
					 * @param string $mixValue
					 * @return string
					 */
					try {
						return ($this->strActive = QType::Cast($mixValue, QType::String));
					} catch (QCallerException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}

				case 'Status':
					/**
					 * Sets the value for intStatus (Not Null)
					 * @param integer $mixValue
					 * @return integer
					 */
					try {
						return ($this->intStatus = QType::Cast($mixValue, QType::Integer));
					} catch (QCallerException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}

				case 'TransactionId':
					/**
					 * Sets the value for intTransactionId 
					 * @param integer $mixValue
					 * @return integer
					 */
					try {
						$this->objTransaction = null;
						return ($this->intTransactionId = QType::Cast($mixValue, QType::Integer));
					} catch (QCallerException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}

				case 'ProcessTransactionId':
					/**
					 * Sets the value for intProcessTransactionId 
					 * @param integer $mixValue
					 * @return integer
					 */
					try {
						$this->objProcessTransaction = null;
						return ($this->intProcessTransactionId = QType::Cast($mixValue, QType::Integer));
					} catch (QCallerException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}

				case 'Ip':
					/**
					 * Sets the value for strIp 
					 * @param string $mixValue
					 * @return string
					 */
					try {
						return ($this->strIp = QType::Cast($mixValue, QType::String));
					} catch (QCallerException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}

				case 'ActualAmount':
					/**
					 * Sets the value for intActualAmount (Not Null)
					 * @param integer $mixValue
					 * @return integer
					 */
					try {
						return ($this->intActualAmount = QType::Cast($mixValue, QType::Integer));
					} catch (QCallerException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}

				case 'ActualFeeTaken':
					/**
					 * Sets the value for intActualFeeTaken (Not Null)
					 * @param integer $mixValue
					 * @return integer
					 */
					try {
						return ($this->intActualFeeTaken = QType::Cast($mixValue, QType::Integer));
					} catch (QCallerException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}

				case 'BankName':
					/**
					 * Sets the value for strBankName 
					 * @param string $mixValue
					 * @return string
					 */
					try {
						return ($this->strBankName = QType::Cast($mixValue, QType::String));
					} catch (QCallerException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}

				case 'BankNameKana':
					/**
					 * Sets the value for strBankNameKana 
					 * @param string $mixValue
					 * @return string
					 */
					try {
						return ($this->strBankNameKana = QType::Cast($mixValue, QType::String));
					} catch (QCallerException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}

				case 'BranchName':
					/**
					 * Sets the value for strBranchName 
					 * @param string $mixValue
					 * @return string
					 */
					try {
						return ($this->strBranchName = QType::Cast($mixValue, QType::String));
					} catch (QCallerException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}

				case 'BranchNameKana':
					/**
					 * Sets the value for strBranchNameKana 
					 * @param string $mixValue
					 * @return string
					 */
					try {
						return ($this->strBranchNameKana = QType::Cast($mixValue, QType::String));
					} catch (QCallerException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}

				case 'BankCode':
					/**
					 * Sets the value for strBankCode 
					 * @param string $mixValue
					 * @return string
					 */
					try {
						return ($this->strBankCode = QType::Cast($mixValue, QType::String));
					} catch (QCallerException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}

				case 'BranchCode':
					/**
					 * Sets the value for strBranchCode 
					 * @param string $mixValue
					 * @return string
					 */
					try {
						return ($this->strBranchCode = QType::Cast($mixValue, QType::String));
					} catch (QCallerException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}

				case 'AccountName':
					/**
					 * Sets the value for strAccountName 
					 * @param string $mixValue
					 * @return string
					 */
					try {
						return ($this->strAccountName = QType::Cast($mixValue, QType::String));
					} catch (QCallerException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}

				case 'AccountType':
					/**
					 * Sets the value for strAccountType 
					 * @param string $mixValue
					 * @return string
					 */
					try {
						return ($this->strAccountType = QType::Cast($mixValue, QType::String));
					} catch (QCallerException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}

				case 'AccountId':
					/**
					 * Sets the value for strAccountId 
					 * @param string $mixValue
					 * @return string
					 */
					try {
						return ($this->strAccountId = QType::Cast($mixValue, QType::String));
					} catch (QCallerException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}

				case 'Description':
					/**
					 * Sets the value for strDescription 
					 * @param string $mixValue
					 * @return string
					 */
					try {
						return ($this->strDescription = QType::Cast($mixValue, QType::String));
					} catch (QCallerException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}


				///////////////////
				// Member Objects
				///////////////////
				case 'User':
					/**
					 * Sets the value for the TableUserProject object referenced by intUserId (Not Null)
					 * @param TableUserProject $mixValue
					 * @return TableUserProject
					 */
					if (is_null($mixValue)) {
						$this->intUserId = null;
						$this->objUser = null;
						return null;
					} else {
						// Make sure $mixValue actually is a TableUserProject object
						try {
							$mixValue = QType::Cast($mixValue, 'TableUserProject');
						} catch (QInvalidCastException $objExc) {
							$objExc->IncrementOffset();
							throw $objExc;
						} 

						// Make sure $mixValue is a SAVED TableUserProject object
						if (is_null($mixValue->Id))
							throw new QCallerException('Unable to set an unsaved User for this TableBankRequestIn');

						// Update Local Member Variables
						$this->objUser = $mixValue;
						$this->intUserId = $mixValue->Id;

						// Return $mixValue
						return $mixValue;
					}
					break;

				case 'Transaction':
					/**
					 * Sets the value for the TableTransaction object referenced by intTransactionId 
					 * @param TableTransaction $mixValue
					 * @return TableTransaction
					 */
					if (is_null($mixValue)) {
						$this->intTransactionId = null;
						$this->objTransaction = null;
						return null;
					} else {
						// Make sure $mixValue actually is a TableTransaction object
						try {
							$mixValue = QType::Cast($mixValue, 'TableTransaction');
						} catch (QInvalidCastException $objExc) {
							$objExc->IncrementOffset();
							throw $objExc;
						} 

						// Make sure $mixValue is a SAVED TableTransaction object
						if (is_null($mixValue->Id))
							throw new QCallerException('Unable to set an unsaved Transaction for this TableBankRequestIn');

						// Update Local Member Variables
						$this->objTransaction = $mixValue;
						$this->intTransactionId = $mixValue->Id;

						// Return $mixValue
						return $mixValue;
					}
					break;

				case 'ProcessTransaction':
					/**
					 * Sets the value for the TableTransaction object referenced by intProcessTransactionId 
					 * @param TableTransaction $mixValue
					 * @return TableTransaction
					 */
					if (is_null($mixValue)) {
						$this->intProcessTransactionId = null;
						$this->objProcessTransaction = null;
						return null;
					} else {
						// Make sure $mixValue actually is a TableTransaction object
						try {
							$mixValue = QType::Cast($mixValue, 'TableTransaction');
						} catch (QInvalidCastException $objExc) {
							$objExc->IncrementOffset();
							throw $objExc;
						} 

						// Make sure $mixValue is a SAVED TableTransaction object
						if (is_null($mixValue->Id))
							throw new QCallerException('Unable to set an unsaved ProcessTransaction for this TableBankRequestIn');

						// Update Local Member Variables
						$this->objProcessTransaction = $mixValue;
						$this->intProcessTransactionId = $mixValue->Id;

						// Return $mixValue
						return $mixValue;
					}
					break;

				default:
					try {
						return parent::__set($strName, $mixValue);
					} catch (QCallerException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}
			}
		}

		/**
		 * Lookup a VirtualAttribute value (if applicable).  Returns NULL if none found.
		 * @param string $strName
		 * @return string
		 */
		public function GetVirtualAttribute($strName) {
			if (array_key_exists($strName, $this->__strVirtualAttributeArray))
				return $this->__strVirtualAttributeArray[$strName];
			return null;
		}



		///////////////////////////////
		// ASSOCIATED OBJECTS' METHODS
		///////////////////////////////





		////////////////////////////////////////
		// METHODS for SOAP-BASED WEB SERVICES
		////////////////////////////////////////

		public static function GetSoapComplexTypeXml() {
			$strToReturn = '<complexType name="TableBankRequestIn"><sequence>';
			$strToReturn .= '<element name="Id" type="xsd:int"/>';
			$strToReturn .= '<element name="User" type="xsd1:TableUserProject"/>';
			$strToReturn .= '<element name="Currency" type="xsd:int"/>';
			$strToReturn .= '<element name="Amount" type="xsd:int"/>';
			$strToReturn .= '<element name="FeeTaken" type="xsd:int"/>';
			$strToReturn .= '<element name="UserNameFrom" type="xsd:string"/>';
			$strToReturn .= '<element name="ProcessAdminName" type="xsd:string"/>';
			$strToReturn .= '<element name="InDate" type="xsd:dateTime"/>';
			$strToReturn .= '<element name="RequestDate" type="xsd:dateTime"/>';
			$strToReturn .= '<element name="ProcessDate" type="xsd:dateTime"/>';
			$strToReturn .= '<element name="Processed" type="xsd:string"/>';
			$strToReturn .= '<element name="Active" type="xsd:string"/>';
			$strToReturn .= '<element name="Status" type="xsd:int"/>';
			$strToReturn .= '<element name="Transaction" type="xsd1:TableTransaction"/>';
			$strToReturn .= '<element name="ProcessTransaction" type="xsd1:TableTransaction"/>';
			$strToReturn .= '<element name="Ip" type="xsd:string"/>';
			$strToReturn .= '<element name="ActualAmount" type="xsd:int"/>';
			$strToReturn .= '<element name="ActualFeeTaken" type="xsd:int"/>';
			$strToReturn .= '<element name="BankName" type="xsd:string"/>';
			$strToReturn .= '<element name="BankNameKana" type="xsd:string"/>';
			$strToReturn .= '<element name="BranchName" type="xsd:string"/>';
			$strToReturn .= '<element name="BranchNameKana" type="xsd:string"/>';
			$strToReturn .= '<element name="BankCode" type="xsd:string"/>';
			$strToReturn .= '<element name="BranchCode" type="xsd:string"/>';
			$strToReturn .= '<element name="AccountName" type="xsd:string"/>';
			$strToReturn .= '<element name="AccountType" type="xsd:string"/>';
			$strToReturn .= '<element name="AccountId" type="xsd:string"/>';
			$strToReturn .= '<element name="Description" type="xsd:string"/>';
			$strToReturn .= '<element name="__blnRestored" type="xsd:boolean"/>';
			$strToReturn .= '</sequence></complexType>';
			return $strToReturn;
		}

		public static function AlterSoapComplexTypeArray(&$strComplexTypeArray) {
			if (!array_key_exists('TableBankRequestIn', $strComplexTypeArray)) {
				$strComplexTypeArray['TableBankRequestIn'] = TableBankRequestIn::GetSoapComplexTypeXml();
				TableUserProject::AlterSoapComplexTypeArray($strComplexTypeArray);
				TableTransaction::AlterSoapComplexTypeArray($strComplexTypeArray);
				TableTransaction::AlterSoapComplexTypeArray($strComplexTypeArray);
			}
		}

		public static function GetArrayFromSoapArray($objSoapArray) {
			$objArrayToReturn = array();

			foreach ($objSoapArray as $objSoapObject)
				array_push($objArrayToReturn, TableBankRequestIn::GetObjectFromSoapObject($objSoapObject));

			return $objArrayToReturn;
		}

		public static function GetObjectFromSoapObject($objSoapObject) {
			$objToReturn = new TableBankRequestIn();
			if (property_exists($objSoapObject, 'Id'))
				$objToReturn->intId = $objSoapObject->Id;
			if ((property_exists($objSoapObject, 'User')) &&
				($objSoapObject->User))
				$objToReturn->User = TableUserProject::GetObjectFromSoapObject($objSoapObject->User);
			if (property_exists($objSoapObject, 'Currency'))
				$objToReturn->intCurrency = $objSoapObject->Currency;
			if (property_exists($objSoapObject, 'Amount'))
				$objToReturn->intAmount = $objSoapObject->Amount;
			if (property_exists($objSoapObject, 'FeeTaken'))
				$objToReturn->intFeeTaken = $objSoapObject->FeeTaken;
			if (property_exists($objSoapObject, 'UserNameFrom'))
				$objToReturn->strUserNameFrom = $objSoapObject->UserNameFrom;
			if (property_exists($objSoapObject, 'ProcessAdminName'))
				$objToReturn->strProcessAdminName = $objSoapObject->ProcessAdminName;
			if (property_exists($objSoapObject, 'InDate'))
				$objToReturn->dttInDate = new QDateTime($objSoapObject->InDate);
			if (property_exists($objSoapObject, 'RequestDate'))
				$objToReturn->dttRequestDate = new QDateTime($objSoapObject->RequestDate);
			if (property_exists($objSoapObject, 'ProcessDate'))
				$objToReturn->dttProcessDate = new QDateTime($objSoapObject->ProcessDate);
			if (property_exists($objSoapObject, 'Processed'))
				$objToReturn->strProcessed = $objSoapObject->Processed;
			if (property_exists($objSoapObject, 'Active'))
				$objToReturn->strActive = $objSoapObject->Active;
			if (property_exists($objSoapObject, 'Status'))
				$objToReturn->intStatus = $objSoapObject->Status;
			if ((property_exists($objSoapObject, 'Transaction')) &&
				($objSoapObject->Transaction))
				$objToReturn->Transaction = TableTransaction::GetObjectFromSoapObject($objSoapObject->Transaction);
			if ((property_exists($objSoapObject, 'ProcessTransaction')) &&
				($objSoapObject->ProcessTransaction))
				$objToReturn->ProcessTransaction = TableTransaction::GetObjectFromSoapObject($objSoapObject->ProcessTransaction);
			if (property_exists($objSoapObject, 'Ip'))
				$objToReturn->strIp = $objSoapObject->Ip;
			if (property_exists($objSoapObject, 'ActualAmount'))
				$objToReturn->intActualAmount = $objSoapObject->ActualAmount;
			if (property_exists($objSoapObject, 'ActualFeeTaken'))
				$objToReturn->intActualFeeTaken = $objSoapObject->ActualFeeTaken;
			if (property_exists($objSoapObject, 'BankName'))
				$objToReturn->strBankName = $objSoapObject->BankName;
			if (property_exists($objSoapObject, 'BankNameKana'))
				$objToReturn->strBankNameKana = $objSoapObject->BankNameKana;
			if (property_exists($objSoapObject, 'BranchName'))
				$objToReturn->strBranchName = $objSoapObject->BranchName;
			if (property_exists($objSoapObject, 'BranchNameKana'))
				$objToReturn->strBranchNameKana = $objSoapObject->BranchNameKana;
			if (property_exists($objSoapObject, 'BankCode'))
				$objToReturn->strBankCode = $objSoapObject->BankCode;
			if (property_exists($objSoapObject, 'BranchCode'))
				$objToReturn->strBranchCode = $objSoapObject->BranchCode;
			if (property_exists($objSoapObject, 'AccountName'))
				$objToReturn->strAccountName = $objSoapObject->AccountName;
			if (property_exists($objSoapObject, 'AccountType'))
				$objToReturn->strAccountType = $objSoapObject->AccountType;
			if (property_exists($objSoapObject, 'AccountId'))
				$objToReturn->strAccountId = $objSoapObject->AccountId;
			if (property_exists($objSoapObject, 'Description'))
				$objToReturn->strDescription = $objSoapObject->Description;
			if (property_exists($objSoapObject, '__blnRestored'))
				$objToReturn->__blnRestored = $objSoapObject->__blnRestored;
			return $objToReturn;
		}

		public static function GetSoapArrayFromArray($objArray) {
			if (!$objArray)
				return null;

			$objArrayToReturn = array();

			foreach ($objArray as $objObject)
				array_push($objArrayToReturn, TableBankRequestIn::GetSoapObjectFromObject($objObject, true));

			return unserialize(serialize($objArrayToReturn));
		}

		public static function GetSoapObjectFromObject($objObject, $blnBindRelatedObjects) {
			if ($objObject->objUser)
				$objObject->objUser = TableUserProject::GetSoapObjectFromObject($objObject->objUser, false);
			else if (!$blnBindRelatedObjects)
				$objObject->intUserId = null;
			if ($objObject->dttInDate)
				$objObject->dttInDate = $objObject->dttInDate->__toString(QDateTime::FormatSoap);
			if ($objObject->dttRequestDate)
				$objObject->dttRequestDate = $objObject->dttRequestDate->__toString(QDateTime::FormatSoap);
			if ($objObject->dttProcessDate)
				$objObject->dttProcessDate = $objObject->dttProcessDate->__toString(QDateTime::FormatSoap);
			if ($objObject->objTransaction)
				$objObject->objTransaction = TableTransaction::GetSoapObjectFromObject($objObject->objTransaction, false);
			else if (!$blnBindRelatedObjects)
				$objObject->intTransactionId = null;
			if ($objObject->objProcessTransaction)
				$objObject->objProcessTransaction = TableTransaction::GetSoapObjectFromObject($objObject->objProcessTransaction, false);
			else if (!$blnBindRelatedObjects)
				$objObject->intProcessTransactionId = null;
			return $objObject;
		}




	}



	/////////////////////////////////////
	// ADDITIONAL CLASSES for QCubed QUERY
	/////////////////////////////////////

	class QQNodeTableBankRequestIn extends QQNode {
		protected $strTableName = 'table_bank_request_in';
		protected $strPrimaryKey = 'id';
		protected $strClassName = 'TableBankRequestIn';
		public function __get($strName) {
			switch ($strName) {
				case 'Id':
					return new QQNode('id', 'Id', 'integer', $this);
				case 'UserId':
					return new QQNode('user_id', 'UserId', 'integer', $this);
				case 'User':
					return new QQNodeTableUserProject('user_id', 'User', 'integer', $this);
				case 'Currency':
					return new QQNode('currency', 'Currency', 'integer', $this);
				case 'Amount':
					return new QQNode('amount', 'Amount', 'integer', $this);
				case 'FeeTaken':
					return new QQNode('fee_taken', 'FeeTaken', 'integer', $this);
				case 'UserNameFrom':
					return new QQNode('user_name_from', 'UserNameFrom', 'string', $this);
				case 'ProcessAdminName':
					return new QQNode('process_admin_name', 'ProcessAdminName', 'string', $this);
				case 'InDate':
					return new QQNode('in_date', 'InDate', 'QDateTime', $this);
				case 'RequestDate':
					return new QQNode('request_date', 'RequestDate', 'QDateTime', $this);
				case 'ProcessDate':
					return new QQNode('process_date', 'ProcessDate', 'QDateTime', $this);
				case 'Processed':
					return new QQNode('processed', 'Processed', 'string', $this);
				case 'Active':
					return new QQNode('active', 'Active', 'string', $this);
				case 'Status':
					return new QQNode('status', 'Status', 'integer', $this);
				case 'TransactionId':
					return new QQNode('transaction_id', 'TransactionId', 'integer', $this);
				case 'Transaction':
					return new QQNodeTableTransaction('transaction_id', 'Transaction', 'integer', $this);
				case 'ProcessTransactionId':
					return new QQNode('process_transaction_id', 'ProcessTransactionId', 'integer', $this);
				case 'ProcessTransaction':
					return new QQNodeTableTransaction('process_transaction_id', 'ProcessTransaction', 'integer', $this);
				case 'Ip':
					return new QQNode('ip', 'Ip', 'string', $this);
				case 'ActualAmount':
					return new QQNode('actual_amount', 'ActualAmount', 'integer', $this);
				case 'ActualFeeTaken':
					return new QQNode('actual_fee_taken', 'ActualFeeTaken', 'integer', $this);
				case 'BankName':
					return new QQNode('bank_name', 'BankName', 'string', $this);
				case 'BankNameKana':
					return new QQNode('bank_name_kana', 'BankNameKana', 'string', $this);
				case 'BranchName':
					return new QQNode('branch_name', 'BranchName', 'string', $this);
				case 'BranchNameKana':
					return new QQNode('branch_name_kana', 'BranchNameKana', 'string', $this);
				case 'BankCode':
					return new QQNode('bank_code', 'BankCode', 'string', $this);
				case 'BranchCode':
					return new QQNode('branch_code', 'BranchCode', 'string', $this);
				case 'AccountName':
					return new QQNode('account_name', 'AccountName', 'string', $this);
				case 'AccountType':
					return new QQNode('account_type', 'AccountType', 'string', $this);
				case 'AccountId':
					return new QQNode('account_id', 'AccountId', 'string', $this);
				case 'Description':
					return new QQNode('description', 'Description', 'string', $this);

				case '_PrimaryKeyNode':
					return new QQNode('id', 'Id', 'integer', $this);
				default:
					try {
						return parent::__get($strName);
					} catch (QCallerException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}
			}
		}
	}

	class QQReverseReferenceNodeTableBankRequestIn extends QQReverseReferenceNode {
		protected $strTableName = 'table_bank_request_in';
		protected $strPrimaryKey = 'id';
		protected $strClassName = 'TableBankRequestIn';
		public function __get($strName) {
			switch ($strName) {
				case 'Id':
					return new QQNode('id', 'Id', 'integer', $this);
				case 'UserId':
					return new QQNode('user_id', 'UserId', 'integer', $this);
				case 'User':
					return new QQNodeTableUserProject('user_id', 'User', 'integer', $this);
				case 'Currency':
					return new QQNode('currency', 'Currency', 'integer', $this);
				case 'Amount':
					return new QQNode('amount', 'Amount', 'integer', $this);
				case 'FeeTaken':
					return new QQNode('fee_taken', 'FeeTaken', 'integer', $this);
				case 'UserNameFrom':
					return new QQNode('user_name_from', 'UserNameFrom', 'string', $this);
				case 'ProcessAdminName':
					return new QQNode('process_admin_name', 'ProcessAdminName', 'string', $this);
				case 'InDate':
					return new QQNode('in_date', 'InDate', 'QDateTime', $this);
				case 'RequestDate':
					return new QQNode('request_date', 'RequestDate', 'QDateTime', $this);
				case 'ProcessDate':
					return new QQNode('process_date', 'ProcessDate', 'QDateTime', $this);
				case 'Processed':
					return new QQNode('processed', 'Processed', 'string', $this);
				case 'Active':
					return new QQNode('active', 'Active', 'string', $this);
				case 'Status':
					return new QQNode('status', 'Status', 'integer', $this);
				case 'TransactionId':
					return new QQNode('transaction_id', 'TransactionId', 'integer', $this);
				case 'Transaction':
					return new QQNodeTableTransaction('transaction_id', 'Transaction', 'integer', $this);
				case 'ProcessTransactionId':
					return new QQNode('process_transaction_id', 'ProcessTransactionId', 'integer', $this);
				case 'ProcessTransaction':
					return new QQNodeTableTransaction('process_transaction_id', 'ProcessTransaction', 'integer', $this);
				case 'Ip':
					return new QQNode('ip', 'Ip', 'string', $this);
				case 'ActualAmount':
					return new QQNode('actual_amount', 'ActualAmount', 'integer', $this);
				case 'ActualFeeTaken':
					return new QQNode('actual_fee_taken', 'ActualFeeTaken', 'integer', $this);
				case 'BankName':
					return new QQNode('bank_name', 'BankName', 'string', $this);
				case 'BankNameKana':
					return new QQNode('bank_name_kana', 'BankNameKana', 'string', $this);
				case 'BranchName':
					return new QQNode('branch_name', 'BranchName', 'string', $this);
				case 'BranchNameKana':
					return new QQNode('branch_name_kana', 'BranchNameKana', 'string', $this);
				case 'BankCode':
					return new QQNode('bank_code', 'BankCode', 'string', $this);
				case 'BranchCode':
					return new QQNode('branch_code', 'BranchCode', 'string', $this);
				case 'AccountName':
					return new QQNode('account_name', 'AccountName', 'string', $this);
				case 'AccountType':
					return new QQNode('account_type', 'AccountType', 'string', $this);
				case 'AccountId':
					return new QQNode('account_id', 'AccountId', 'string', $this);
				case 'Description':
					return new QQNode('description', 'Description', 'string', $this);

				case '_PrimaryKeyNode':
					return new QQNode('id', 'Id', 'integer', $this);
				default:
					try {
						return parent::__get($strName);
					} catch (QCallerException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}
			}
		}
	}

?>